package teacher.action.student;

import com.opensymphony.xwork2.ActionSupport;
import teacher.bean.Students;
import teacher.bean.Stuproject;
import teacher.service.student;

public class oneStuPro extends ActionSupport{
	
	private static final long serialVersionUID = 1L;
	private int proId;
	private Stuproject stuPro=new Stuproject();

	public int getProId() {
		return proId;
	}

	public void setProId(int proId) {
		this.proId = proId;
	}

	public Stuproject getStuPro() {
		return stuPro;
	}

	public void setStuPro(Stuproject stuPro) {
		this.stuPro = stuPro;
	}

	public String execute() throws Exception{
		
		Stuproject sp=new Stuproject();
		sp.setStuproId(proId);
		stuPro=new student().selectProById(sp);
		return SUCCESS;
		
	}

}
